package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName:CouponCode
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/3/15 16:53
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "oo_coupon_code")
public class CouponCode implements Serializable {
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    @Column(name = "coupon_id", length = 64)
    private String couponId;

    @Column(name = "user_id",  length = 64)
    private String userId;
    /**
     * 券码
     */
    @Column(name = "coupon_code",  length = 32)
    private String couponCode;

    /**
     * 优惠券名称
     */
    private String couponName;
    /**
     * 使用时间
     */
    @Column(name = "use_time",  length = 32)
    private String useTime;
    /**
     * 过期时间
     */
    @Column(name = "use_time_end",  length = 32)
    private String useTimeEnd;

    /**
     * 开始使用时间
     */
    private String useTimeStart;

    /**
     * 领取时间
     */
    @Column(name = "add_time",  length = 32)
    private String addTime;

    @Column(name = "create_time", length = 32)
    private String createTime;
    /**
     * 优惠券码状态 -1默认 0—可用 2—已核销 3—已过期
     */
    @Column(name = "status", nullable = false, columnDefinition = "TINYINT default -1")
    private Integer status;
    /**
     * 核销管理员id
     */
    @Column(name = "use_admin_id", length = 64)
    private String useAdminId;

    /**
     * 使用停车券的车牌号
     */
    private String carNumber;

    /**
     * 券类型
     */
    private Integer type;

    /**
     * 核销人名称
     */
    private String adminName;

    /**
     * 发放人名称
     */
    private String senderName;

    /**
     * 商户id（目前只针对停车券）
     */
    private String storeId;

    /**
     * 关联商城id
     */
    private String shopMallId;

}
